// 户籍所在区县 弹窗公用芳芳

export default {
  data() {
    return {
      cityPickerVisible: false,
      cityPickerWithKey: ''
    }
  },
  methods: {
    onCityConfirm(event, formName = 'form') {
      let key = this.cityPickerWithKey
      this[formName][`${key}_text`] = event.address;
      this[formName][`${key}`] = event.code;
      this.cityPickerVisible = false;
    },
    handleCityPicker(key) {
      this.cityPickerWithKey = key
      this.cityPickerVisible = true
    },
  }
}